package lesson15;

public class ConstructorExample {

	public static void main(String[] args) 
	{
		Car car = new Car("fiesta", false, "white", 3000, 180);
		//car.printCar();
		
		Car car2 = new Car("golf", true, "black", 1500, 300);
		//System.out.println(car.isMoreExpensive(car2));
		//System.out.println(car2.calculateCarPriceForScrap(200));
		System.out.println();
		
		Person p = new Person("Ivan", "1234567890", 'M');
		p.printPerson();
		
		System.out.println();
		p.money = 2000;
		p.buyCar(car2);

	}

}
